home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / win_m_p / mews11.zip / EDEF.H < prev    next >
Text File  |  1992-07-20  |  20KB  |  412 lines

  1. /*    EDEF:        Global variable definitions for
  2.             MicroEMACS 3.9
  3.  
  4.                         written by Daniel Lawrence
  5.                         based on code by Dave G. Conroy,
  6.                             Steve Wilhite and George Jones
  7. */
  8.  
  9. #ifdef    maindef
  10.  
  11. /* for MAIN.C */
  12.  
  13. /* initialized global definitions */
  14.  
  15. NOSHARE int DNEAR fillcol = 72;     /* Current fill column        */
  16. NOSHARE short kbdm[NKBDM];        /* Macro            */
  17. NOSHARE char *execstr = NULL;        /* pointer to string to execute */
  18. NOSHARE char golabel[NPAT] = "";    /* current line to go to    */
  19. NOSHARE char paralead[NPAT] = " \t";    /* paragraph leadin chars    */
  20. NOSHARE char fmtlead[NPAT] = "";    /* format command leadin chars    */
  21. NOSHARE char mainbuf[] = "main";    /* name of main buffer        */
  22. NOSHARE char lterm[NSTRING];        /* line terminators on file write */
  23. NOSHARE unsigned char wordlist[256];    /* characters considered "in words" */
  24. NOSHARE int DNEAR wlflag = FALSE;    /* word list enabled flag    */
  25. NOSHARE int DNEAR clearflag = TRUE;    /* clear screen on screen change? */
  26. NOSHARE int DNEAR execlevel = 0;    /* execution IF level        */
  27. NOSHARE int DNEAR eolexist = TRUE;    /* does clear to EOL exist?    */
  28. NOSHARE int DNEAR revexist = FALSE;    /* does reverse video exist?    */
  29. NOSHARE int DNEAR exec_error = FALSE;    /* macro execution error pending? */
  30. NOSHARE int DNEAR flickcode = TRUE;    /* do flicker supression?    */
  31. CONST char *modename[] = {         /* name of modes        */
  32.     "WRAP", "CMODE", "SPELL", "EXACT", "VIEW", "OVER",
  33.     "MAGIC", "CRYPT", "ASAVE", "REP"};
  34. CONST char modecode[] = "WCSEVOMYAR";    /* letters to represent modes    */
  35. NOSHARE int DNEAR numfunc = NFUNCS;    /* number of bindable functions */
  36. NOSHARE int DNEAR gmode = 0;        /* global editor mode        */
  37. NOSHARE int DNEAR gflags = GFREAD;    /* global control flag        */
  38. NOSHARE int DNEAR gfcolor = 7;        /* global forgrnd color (white) */
  39. NOSHARE int DNEAR gbcolor = 0;        /* global backgrnd color (black)*/
  40. NOSHARE int DNEAR deskcolor = 0;    /* desktop background color    */
  41. NOSHARE int DNEAR gasave = 256;     /* global ASAVE size        */
  42. NOSHARE int DNEAR gacount = 256;    /* count until next ASAVE    */
  43. NOSHARE int DNEAR sgarbf = TRUE;     /* TRUE if screen is garbage    */
  44. NOSHARE int DNEAR mpresf = FALSE;    /* TRUE if message in last line */
  45. NOSHARE int DNEAR clexec = FALSE;    /* command line execution flag    */
  46. NOSHARE int DNEAR mstore = FALSE;    /* storing text to macro flag    */
  47. NOSHARE int DNEAR discmd = TRUE;     /* display command flag     */
  48. NOSHARE int DNEAR disinp = TRUE;     /* display input characters    */
  49. NOSHARE int DNEAR modeflag = TRUE;    /* display modelines flag    */
  50. NOSHARE int DNEAR timeflag = FALSE;    /* display time            */
  51. NOSHARE char DNEAR lasttime[6] = "";    /* last time string displayed    */
  52. NOSHARE int DNEAR popflag = TRUE;    /* pop-up windows enabled?    */
  53. NOSHARE int DNEAR posflag = TRUE;    /* display point position    */
  54. NOSHARE int cpending = FALSE;        /* input character pending?    */
  55. NOSHARE int charpending;        /* character pushed back    */
  56. NOSHARE int DNEAR sscroll = FALSE;    /* smooth scrolling enabled flag*/
  57. NOSHARE int DNEAR hscroll = TRUE;    /* horizontal scrolling flag    */
  58. #if WINDOW_MSWIN
  59. NOSHARE int DNEAR hscrollbar = TRUE;    /* horizontal scroll bar flag    */
  60. NOSHARE int DNEAR vscrollbar = TRUE;    /* vertical scroll bar flag    */
  61. #endif
  62. NOSHARE int DNEAR hjump = 1;        /* horizontal jump size     */
  63. NOSHARE int DNEAR ssave = TRUE;     /* safe save flag        */
  64. NOSHARE struct BUFFER *bstore = NULL;    /* buffer to store macro text to*/
  65. NOSHARE int DNEAR vtrow = 0;        /* Row location of SW cursor    */
  66. NOSHARE int DNEAR vtcol = 0;        /* Column location of SW cursor */
  67. NOSHARE int DNEAR ttrow = HUGE;     /* Row location of HW cursor    */
  68. NOSHARE int DNEAR ttcol = HUGE;     /* Column location of HW cursor */
  69. NOSHARE int DNEAR lbound = 0;        /* leftmost column of current line
  70.                        being displayed        */
  71. NOSHARE int DNEAR taboff = 0;        /* tab offset for display    */
  72. NOSHARE int DNEAR tabsize = 8;        /* current hard tab size    */
  73. NOSHARE int DNEAR stabsize = 0;        /* current soft tab size (0: use hard tabs)  */
  74. NOSHARE int DNEAR reptc = CTRL | 'U';    /* current universal repeat char*/
  75. NOSHARE int DNEAR abortc = CTRL | 'G';    /* current abort command char    */
  76. NOSHARE int DNEAR sterm = CTRL | '[';    /* search terminating character */
  77. NOSHARE int DNEAR searchtype = SRNORM;    /* current search style        */
  78. NOSHARE int DNEAR yankflag = FALSE;    /* current yank style        */
  79.  
  80. NOSHARE int DNEAR prefix = 0;        /* currently pending prefix bits */
  81. NOSHARE int DNEAR prenum = 0;        /*     "       "     numeric arg */
  82. NOSHARE int DNEAR predef = TRUE;    /*     "       "     default flag */
  83.  
  84. NOSHARE int DNEAR quotec = CTRL | 'Q';    /* quote char during mlreply() */
  85. NOSHARE CONST char *cname[] = {        /* names of colors        */
  86.     "BLACK", "RED", "GREEN", "YELLOW", "BLUE",
  87.     "MAGENTA", "CYAN", "GREY",
  88.     "GRAY", "LRED", "LGREEN", "LYELLOW", "LBLUE",
  89.     "LMAGENTA", "LCYAN", "WHITE"};
  90.   
  91. NOSHARE int kill_index;            /* current index into kill ring */
  92. NOSHARE KILL *kbufp[NRING];        /* current kill buffer chunk pointer*/
  93. NOSHARE KILL *kbufh[NRING];        /* kill buffer header pointer    */
  94. NOSHARE    int kskip[NRING];        /* # of bytes to skip in 1st kill chunk */
  95. NOSHARE int kused[NRING];        /* # of bytes used in last kill chunk*/
  96. NOSHARE WINDOW *swindow = NULL;     /* saved window pointer     */
  97. NOSHARE int cryptflag = FALSE;        /* currently encrypting?    */
  98. NOSHARE int oldcrypt = FALSE;        /* using old(broken) encryption? */
  99. NOSHARE short *kbdptr;            /* current position in keyboard buf */
  100. NOSHARE short *kbdend = &kbdm[0];    /* ptr to end of the keyboard */
  101. NOSHARE int DNEAR kbdmode = STOP;    /* current keyboard macro mode    */
  102. NOSHARE int DNEAR kbdrep = 0;        /* number of repetitions    */
  103. NOSHARE int DNEAR restflag = FALSE;    /* restricted use?        */
  104. NOSHARE int DNEAR lastkey = 0;        /* last keystoke        */
  105. NOSHARE int DNEAR seed = 0;        /* random number seed        */
  106. NOSHARE long envram = 0l;        /* # of bytes current in use by malloc */
  107. NOSHARE int DNEAR macbug = FALSE;    /* macro debugging flag        */
  108. NOSHARE int DNEAR mouseflag = TRUE;    /* use the mouse?        */
  109. NOSHARE int DNEAR diagflag = FALSE;    /* diagonal mouse movements?    */
  110. CONST char errorm[] = "ERROR";        /* error literal        */
  111. CONST char truem[] = "TRUE";        /* true literal         */
  112. CONST char falsem[] = "FALSE";        /* false litereal        */
  113. NOSHARE int DNEAR cmdstatus = TRUE;    /* last command status        */
  114. NOSHARE char palstr[49] = "";        /* palette string        */
  115. NOSHARE char lastmesg[NSTRING] = "";     /* last message posted        */
  116. NOSHARE char *lastptr = NULL;        /* ptr to lastmesg[]        */
  117. NOSHARE int DNEAR saveflag = 0;     /* Flags, saved with the $target var */
  118. NOSHARE char *fline = NULL;        /* dynamic return line        */
  119. NOSHARE int DNEAR flen = 0;        /* current length of fline    */
  120. NOSHARE int DNEAR rval = 0;        /* return value of a subprocess */
  121. NOSHARE int DNEAR eexitflag = FALSE;    /* EMACS exit flag        */
  122. NOSHARE int DNEAR eexitval = 0;     /* and the exit return value    */
  123. NOSHARE int xpos = 0;        /* current column mouse is positioned to*/
  124. NOSHARE int ypos = 0;        /* current screen row         "        */
  125. NOSHARE int nclicks = 0;    /* cleared on any non-mouse event    */
  126. NOSHARE int disphigh = FALSE;    /* display high bit chars escaped    */
  127. NOSHARE int defferupdate = FALSE;/* if TRUE, update(TRUE) should be
  128.                     called before yielding to another
  129.                     Windows application */
  130. NOSHARE int notquiescent = 1;   /* <=0 only when getkey called directly by
  131.                    editloop () */
  132. NOSHARE int fbusy = FALSE;      /* indicates file activity if FREADING
  133.                    or FWRITING. Used by abort mechanism */
  134.  
  135. /* uninitialized global definitions */
  136.  
  137. NOSHARE int DNEAR currow;    /* Cursor row            */
  138. NOSHARE int DNEAR curcol;    /* Cursor column        */
  139. NOSHARE int DNEAR thisflag;    /* Flags, this command        */
  140. NOSHARE int DNEAR lastflag;    /* Flags, last command        */
  141. NOSHARE int DNEAR curgoal;    /* Goal for C-P, C-N        */
  142. NOSHARE WINDOW *curwp;         /* Current window        */
  143. NOSHARE BUFFER *curbp;         /* Current buffer        */
  144. NOSHARE WINDOW *wheadp;        /* Head of list of windows    */
  145. NOSHARE BUFFER *bheadp;        /* Head of list of buffers     */
  146. NOSHARE SCREEN *first_screen;    /* Head and current screen in list */
  147. NOSHARE BUFFER *blistp;        /* Buffer for C-X C-B        */
  148. NOSHARE BUFFER *slistp;        /* Buffer for A-B        */
  149.  
  150. NOSHARE char sres[NBUFN];    /* current screen resolution    */
  151.  
  152. NOSHARE    char lowcase[HICHAR];    /* lower casing map        */
  153. NOSHARE    char upcase[HICHAR];    /* upper casing map        */
  154.  
  155. NOSHARE char pat[NPAT];        /* Search pattern        */
  156. NOSHARE char tap[NPAT];        /* Reversed pattern array.    */
  157. NOSHARE char rpat[NPAT];    /* replacement pattern        */
  158.  
  159. /*    Various "Hook" execution variables    */
  160.  
  161. NOSHARE KEYTAB readhook;    /* executed on all file reads */
  162. NOSHARE KEYTAB wraphook;    /* executed when wrapping text */
  163. NOSHARE KEYTAB cmdhook;        /* executed before looking for a command */
  164. NOSHARE KEYTAB writehook;    /* executed on all file writes */
  165. NOSHARE KEYTAB exbhook;        /* executed when exiting a buffer */
  166. NOSHARE KEYTAB bufhook;        /* executed when entering a buffer */
  167.  
  168. /* The variables matchline and matchoff hold the line
  169.  * and offset position of the *start* of the match.
  170.  * The variable patmatch holds the string that satisfies
  171.  * the search command.
  172.  */
  173. NOSHARE int    matchlen;
  174. NOSHARE int    matchoff;
  175. NOSHARE LINE    *matchline;
  176. NOSHARE char *patmatch = NULL;
  177.  
  178. #if    MAGIC
  179. /*
  180.  * The variables magical and rmagical determine if there
  181.  * were actual metacharacters in the search and replace strings -
  182.  * if not, then we don't have to use the slower MAGIC mode
  183.  * search functions.
  184.  */
  185. NOSHARE short int DNEAR magical = FALSE;
  186. NOSHARE short int DNEAR rmagical = FALSE;
  187. NOSHARE MC mcpat[NPAT];     /* the magic pattern        */
  188. NOSHARE MC tapcm[NPAT];     /* the reversed magic pattern    */
  189. NOSHARE RMC rmcpat[NPAT];    /* the replacement magic array    */
  190. NOSHARE char *grpmatch[MAXGROUPS];    /* holds groups found in search */ 
  191.  
  192. #endif
  193.  
  194. /* directive name table:
  195.     This holds the names of all the directives....    */
  196.  
  197. CONST char *dname[] = {
  198.     "if", "else", "endif",
  199.     "goto", "return", "endm",
  200.     "while", "endwhile", "break",
  201.     "force"
  202. };
  203.  
  204. #if    DEBUGM
  205. /*    vars needed for macro debugging output    */
  206. NOSHARE char outline[NSTRING];    /* global string to hold debug line text */
  207. #endif
  208.  
  209. /*
  210.  * System message notification (at the moment, VMS only).
  211.  */
  212. #if    VMS
  213. NOSHARE char brdcstbuf[1024];        /* Broadcast messages */
  214. NOSHARE int pending_msg = FALSE;    /* Flag - have we notified user yet.*/
  215. #endif
  216.  
  217. #else
  218.  
  219. /* for all the other .C files */
  220.  
  221. /* initialized global external declarations */
  222.  
  223. NOSHARE extern int DNEAR fillcol;    /* Current fill column        */
  224. NOSHARE extern short kbdm[DUMMYSZ];     /* Holds kayboard macro data    */
  225. NOSHARE extern char *execstr;        /* pointer to string to execute */
  226. NOSHARE extern char golabel[DUMMYSZ];    /* current line to go to    */
  227. NOSHARE extern char paralead[DUMMYSZ];    /* paragraph leadin chars    */
  228. NOSHARE extern char fmtlead[DUMMYSZ];    /* format command leadin chars    */
  229. NOSHARE extern char mainbuf[DUMMYSZ];    /* name of main buffer        */
  230. NOSHARE extern char lterm[DUMMYSZ];    /* line terminators on file write */
  231. NOSHARE extern unsigned char wordlist[DUMMYSZ];
  232.                     /* characters considered "in words" */
  233. NOSHARE extern int DNEAR wlflag;    /* word list enabled flag    */
  234. NOSHARE extern int DNEAR clearflag;    /* clear screen on screen change? */
  235. NOSHARE extern int DNEAR execlevel;    /* execution IF level        */
  236. NOSHARE extern int DNEAR eolexist;    /* does clear to EOL exist?    */
  237. NOSHARE extern int DNEAR revexist;    /* does reverse video exist?    */
  238. NOSHARE extern int DNEAR exec_error;    /* macro execution error pending? */
  239. NOSHARE extern int DNEAR flickcode;    /* do flicker supression?    */
  240. CONST extern char *modename[DUMMYSZ];    /* text names of modes        */
  241. CONST extern char modecode[DUMMYSZ];    /* letters to represent modes    */
  242. NOSHARE extern int DNEAR numfunc;    /* number of bindable functions */
  243. NOSHARE extern KEYTAB keytab[DUMMYSZ];    /* key bind to functions table    */
  244. NOSHARE extern NBIND names[DUMMYSZ];    /* name to function table    */
  245. NOSHARE extern int DNEAR gmode;        /* global editor mode        */
  246. NOSHARE extern int DNEAR gflags;    /* global control flag        */
  247. NOSHARE extern int DNEAR gfcolor;    /* global forgrnd color (white) */
  248. NOSHARE extern int DNEAR gbcolor;    /* global backgrnd color (black)*/
  249. NOSHARE extern int DNEAR deskcolor;    /* desktop background color    */
  250. NOSHARE extern int DNEAR gasave;    /* global ASAVE size        */
  251. NOSHARE extern int DNEAR gacount;    /* count until next ASAVE    */
  252. NOSHARE extern int DNEAR sgarbf;    /* State of screen unknown    */
  253. NOSHARE extern int DNEAR mpresf;    /* Stuff in message line    */
  254. NOSHARE extern int DNEAR clexec;    /* command line execution flag    */
  255. NOSHARE extern int DNEAR mstore;    /* storing text to macro flag    */
  256. NOSHARE extern int DNEAR discmd;    /* display command flag     */
  257. NOSHARE extern int DNEAR disinp;    /* display input characters    */
  258. NOSHARE extern int DNEAR modeflag;    /* display modelines flag    */
  259. NOSHARE extern int DNEAR timeflag;    /* display time            */
  260. NOSHARE extern char DNEAR lasttime[DUMMYSZ];
  261.                     /* last time string displayed    */
  262. NOSHARE extern int DNEAR popflag;    /* pop-up windows enabled?    */
  263. NOSHARE extern int DNEAR posflag;    /* display point position    */
  264. NOSHARE extern int cpending;        /* input character pending?    */
  265. NOSHARE extern int charpending;        /* character pushed back    */
  266. NOSHARE extern int DNEAR sscroll;    /* smooth scrolling enabled flag*/
  267. NOSHARE extern int DNEAR hscroll;    /* horizontal scrolling flag    */
  268. #if WINDOW_MSWIN
  269. NOSHARE extern int DNEAR hscrollbar;    /* horizontal scroll bar flag    */
  270. NOSHARE extern int DNEAR vscrollbar;    /* vertical scroll bar flag    */
  271. #endif
  272. NOSHARE extern int DNEAR hjump;        /* horizontal jump size     */
  273. NOSHARE extern int DNEAR ssave;        /* safe save flag        */
  274. NOSHARE extern struct BUFFER *bstore;    /* buffer to store macro text to*/
  275. NOSHARE extern int DNEAR vtrow;        /* Row location of SW cursor    */
  276. NOSHARE extern int DNEAR vtcol;        /* Column location of SW cursor */
  277. NOSHARE extern int DNEAR ttrow;        /* Row location of HW cursor    */
  278. NOSHARE extern int DNEAR ttcol;        /* Column location of HW cursor */
  279. NOSHARE extern int DNEAR lbound;    /* leftmost column of current line
  280.                        being displayed        */
  281. NOSHARE extern int DNEAR taboff;    /* tab offset for display    */
  282. NOSHARE extern int DNEAR tabsize;    /* current hard tab size    */
  283. NOSHARE extern int DNEAR stabsize;    /* current soft tab size (0: use hard tabs)  */
  284. NOSHARE extern int DNEAR reptc;        /* current universal repeat char*/
  285. NOSHARE extern int DNEAR abortc;    /* current abort command char    */
  286. NOSHARE extern int DNEAR sterm;        /* search terminating character */
  287. NOSHARE extern int DNEAR searchtype;    /* current search style        */
  288. NOSHARE extern int DNEAR yankflag;    /* current yank style        */
  289.  
  290. NOSHARE extern int DNEAR prefix;    /* currently pending prefix bits */
  291. NOSHARE extern int DNEAR prenum;    /*     "       "     numeric arg */
  292. NOSHARE extern int DNEAR predef;    /*     "       "     default flag */
  293.  
  294. NOSHARE extern int DNEAR quotec;    /* quote char during mlreply() */
  295. NOSHARE extern CONST char *cname[DUMMYSZ];
  296.                     /* names of colors        */
  297.   
  298. NOSHARE extern int kill_index;        /* current index into kill ring */
  299. NOSHARE extern KILL *kbufp[DUMMYSZ];    /* current kill buffer chunk pointer */
  300. NOSHARE extern KILL *kbufh[DUMMYSZ];    /* kill buffer header pointer    */
  301. NOSHARE    extern int kskip[DUMMYSZ];    /* # of bytes to skip in 1st kill chunk */
  302. NOSHARE extern int kused[DUMMYSZ];    /* # of bytes used in kill buffer*/
  303. NOSHARE extern WINDOW *swindow;     /* saved window pointer     */
  304. NOSHARE extern int cryptflag;        /* currently encrypting?    */
  305. NOSHARE extern int oldcrypt;        /* using old(broken) encryption? */
  306. NOSHARE extern short *kbdptr;        /* current position in keyboard buf */
  307. NOSHARE extern short *kbdend;        /* ptr to end of the keyboard */
  308. NOSHARE extern int kbdmode;        /* current keyboard macro mode    */
  309. NOSHARE extern int kbdrep;        /* number of repetitions    */
  310. NOSHARE extern int restflag;        /* restricted use?        */
  311. NOSHARE extern int lastkey;        /* last keystoke        */
  312. NOSHARE extern int seed;        /* random number seed        */
  313. NOSHARE extern long envram;        /* # of bytes current in use by malloc */
  314. NOSHARE extern int DNEAR macbug;    /* macro debugging flag        */
  315. NOSHARE extern int DNEAR mouseflag;    /* use the mouse?        */
  316. NOSHARE extern int DNEAR diagflag;    /* diagonal mouse movements?    */
  317. CONST extern char errorm[DUMMYSZ];    /* error literal        */
  318. CONST extern char truem[DUMMYSZ];    /* true literal         */
  319. CONST extern char falsem[DUMMYSZ];    /* false litereal        */
  320. NOSHARE extern int DNEAR cmdstatus;    /* last command status        */
  321. NOSHARE extern char palstr[DUMMYSZ];    /* palette string        */
  322. NOSHARE extern char lastmesg[DUMMYSZ];    /* last message posted        */
  323. NOSHARE extern char *lastptr;        /* ptr to lastmesg[]        */
  324. NOSHARE extern int DNEAR saveflag;    /* Flags, saved with the $target var */
  325. NOSHARE extern char *fline;         /* dynamic return line */
  326. NOSHARE extern int DNEAR flen;         /* current length of fline */
  327. NOSHARE extern int DNEAR rval;         /* return value of a subprocess */
  328. NOSHARE extern int DNEAR eexitflag;    /* EMACS exit flag */
  329. NOSHARE extern int DNEAR eexitval;    /* and the exit return value */
  330. NOSHARE extern int xpos;        /* current column mouse is positioned to */
  331. NOSHARE extern int ypos;        /* current screen row         "     */
  332. NOSHARE extern int nclicks;        /* cleared on any non-mouse event*/
  333. NOSHARE extern int disphigh;        /* display high bit chars escaped*/
  334. NOSHARE extern int defferupdate;        /* if TRUE, update(TRUE) should
  335.                        be called before yielding to
  336.                        another Windows application */
  337. NOSHARE extern int notquiescent;        /* <=0 only when getkey called
  338.                        directly by editloop () */
  339. NOSHARE extern int fbusy;               /* indicates file activity if
  340.                        FREADING or FWRITING. Used by
  341.                        abort mechanism */
  342.  
  343. /* uninitialized global external declarations */
  344.  
  345. NOSHARE extern int DNEAR currow;    /* Cursor row            */
  346. NOSHARE extern int DNEAR curcol;    /* Cursor column        */
  347. NOSHARE extern int DNEAR thisflag;    /* Flags, this command        */
  348. NOSHARE extern int DNEAR lastflag;    /* Flags, last command        */
  349. NOSHARE extern int DNEAR curgoal;    /* Goal for C-P, C-N        */
  350. NOSHARE extern WINDOW *curwp;         /* Current window        */
  351. NOSHARE extern BUFFER *curbp;         /* Current buffer        */
  352. NOSHARE extern WINDOW *wheadp;        /* Head of list of windows    */
  353. NOSHARE extern BUFFER *bheadp;        /* Head of list of buffers    */
  354. NOSHARE extern SCREEN *first_screen;    /* Head and current screen in list */
  355. NOSHARE extern BUFFER *blistp;        /* Buffer for C-X C-B        */
  356. NOSHARE extern BUFFER *slistp;        /* Buffer for A-B        */
  357.  
  358. NOSHARE extern char sres[NBUFN];    /* current screen resolution    */
  359.  
  360. NOSHARE    extern char lowcase[HICHAR];    /* lower casing map        */
  361. NOSHARE    extern char upcase[HICHAR];    /* upper casing map        */
  362.  
  363. NOSHARE extern char pat[DUMMYSZ];    /* Search pattern        */
  364. NOSHARE extern char tap[DUMMYSZ];    /* Reversed pattern array.    */
  365. NOSHARE extern char rpat[DUMMYSZ];    /* replacement pattern        */
  366.  
  367. /*    Various "Hook" execution variables    */
  368.  
  369. NOSHARE extern KEYTAB readhook;        /* executed on all file reads */
  370. NOSHARE extern KEYTAB wraphook;        /* executed when wrapping text */
  371. NOSHARE extern KEYTAB cmdhook;        /* executed before looking for a cmd */
  372. NOSHARE extern KEYTAB writehook;    /* executed on all file writes */
  373. NOSHARE extern KEYTAB exbhook;        /* executed when exiting a buffer */
  374. NOSHARE extern KEYTAB bufhook;        /* executed when entering a buffer */
  375.  
  376. NOSHARE extern int matchlen;
  377. NOSHARE extern int matchoff;
  378. NOSHARE extern LINE *matchline;
  379. NOSHARE extern char *patmatch;
  380.  
  381. #if    MAGIC
  382. NOSHARE extern short int magical;
  383. NOSHARE extern short int rmagical;
  384. NOSHARE extern MC mcpat[NPAT];        /* the magic pattern        */
  385. NOSHARE extern MC tapcm[NPAT];        /* the reversed magic pattern    */
  386. NOSHARE extern RMC rmcpat[NPAT];    /* the replacement magic array    */
  387. NOSHARE extern char *grpmatch[MAXGROUPS];    /* holds groups found in search */ 
  388. #endif
  389.  
  390. CONST extern char *dname[DUMMYSZ];    /* directive name table     */
  391.  
  392. #if    DEBUGM
  393. /*    vars needed for macro debugging output    */
  394. NOSHARE extern char outline[DUMMYSZ];/* global string to hold debug line text */
  395. #endif
  396.  
  397. /*
  398.  * System message notification (at the moment, VMS only).
  399.  */
  400. #if    VMS
  401. NOSHARE extern char brdcstbuf[1024];        /* Broadcast messages */
  402. NOSHARE extern int pending_msg;        /* Flag - have we notified user yet.*/
  403. #endif
  404.  
  405. #endif
  406.  
  407. /* terminal table defined only in TERM.C */
  408.  
  409. #ifndef termdef
  410. NOSHARE extern TERM    term;        /* Terminal information.    */
  411. #endif
  412.